﻿package{   
    import flash.display.*;   
    import flash.events.*;   
    public class test extends MovieClip{   
        public function test():void{    
			this.addEventListener(Event.ADDED_TO_STAGE,added);
        }
		private function added(e:Event):void{
			trace(999999);
            this.stage.loaderInfo.addEventListener(ProgressEvent.PROGRESS,loadProgress,false,0,true)   
            this.stage.loaderInfo.addEventListener(Event.COMPLETE,init,false,0,true) 
		}
        private function loadProgress(e:ProgressEvent):void{
            trace(e.bytesLoaded,e.bytesTotal)   
        }   
        private function init(e:Event):void{   
        }   
    }   
}  
